package com.yst.gateway.monitor.dao;

import com.yst.gateway.monitor.models.QzApplication;

import java.util.List;
import java.util.Map;

public interface QzApplicationMapper {
    int deleteByPrimaryKey(String appId);

    int insert(QzApplication app);
    
    int updateStatus(QzApplication app);

    QzApplication selectByPrimaryKey(String appId);     
    
    List<QzApplication> selectAll(Map<String ,Object> param);

    int updateByPrimaryKey(QzApplication app);
    
    QzApplication checkName(Map<String, String> paramMap);
    
    QzApplication checkCode(Map<String, String> paramMap);
    
    //通过应用id获取关联的接口列表
    List<QzApplication> getIntersById(String appId);
    
    //获取与应用匹配的接口列表
    List<QzApplication> getMatchInters(Map<String, Object> paramMap);
    //添加应用关联接口
    int associateInter(Map<String, Object> paramMap);
    
    boolean assoDel(String id);
}